# -*- coding:UTF-8 -*-
def l_get(list,i,v=None):
	if -len(list) <= i < len(list):
		return list[i]
	else:
		return v
if __name__ == '__main__':
	l = [4,21314,314,13]
	print l_get(l,4)
	print l_get(l,3)
